<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import= "com.roadmap.struts.action.ActionConst"%>
<%@ page import="com.roadmap.common.RdcResourceBundle" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String user_ssn_id = (String)request.getSession().getAttribute(ActionConst.Aspirant_Id_In_Session);
String user_req_id = (String)request.getParameter(ActionConst.Aspirant_Id_In_Request);
if(user_req_id == null){
	user_req_id = user_ssn_id;
}

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache"/>
<meta http-equiv="cache-control" content="no-cache"/>
<meta http-equiv="expires" content="0"/> 
<link href="res/css/layout.css" rel="stylesheet" type="text/css" media="all" />
<link href="res/css/life.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="res/js/util.js"></script>
<script type="text/javascript" src="res/js/func.js"></script>
<title><bean:write name="<%=ActionConst.Aspirant_Name_In_Request %>"/>的总结感悟 | <%=RdcResourceBundle.COMPANY_NAME %></title>
</head>

<body id="container">
	<!-- define header including menus and logo -->
	<jsp:include page="/admin/myheader.jsp"></jsp:include>
	
	<!-- main body -->
	<div class="mainbody"><div class="manager">
	<jsp:include page="/admin/life/nav_btns.jsp"/>
			
	<!-- middle part: content -->
	<div class="middle-part">
		<div class="section">
			<div class="title-sp"><a href="aspirant.do?uid=<%=user_req_id %>"><bean:write name="<%=ActionConst.Aspirant_Name_In_Request %>"/></a>的所有总结感悟</div>
			
			<logic:present name="<%=ActionConst.Visitor_Is_Owner %>">
			<div class="float-right"><a class="linkBtn" href="blog.do?act=create">发表新总结感悟</a></div>
			</logic:present>
		</div>
		
		<div class="section">
			<logic:notPresent name="articles"><span class="prompt-message">该用户没有总结感悟</span></logic:notPresent>
			<logic:present name="articles">
				<logic:iterate id="article" name="articles">
					<bean:define id='artid' name='article' property='id'></bean:define>
					<div class="article" style="border-bottom:none;">
						<div class="title">
							<div><a href="blog.do?act=view&uid=<%=user_req_id %>&id=<%=artid %>"><span class="title-text"><bean:write name="article" property="title"/></span></a></div>
							<div><span class="tstamp">创建于<b><bean:write format="yyyy-MM-dd HH:mm:ss" name="article" property="createdTime"/></b></span></div>
						</div>
						
						<div class="content">
							<bean:write filter="false" name="article" property="content"/>
						</div>
					</div>
				</logic:iterate>
			</logic:present>
		</div>
		
		<jsp:include page="/pagelet/pagingBarPagelet.jsp"/>
	</div>
		
	<!-- right part: -->
	<div class="right-part">
	</div>
	
	</div>
	
	<div class="clear-div"></div>
	</div>
	
	<jsp:include page="/res/jsp/footer.jsp"></jsp:include>

</body>
</html>
